import Mock from 'mockjs'
import homeApi from './mockSeverData/home'
import user from './mockSeverData/user'
import permission from './mockSeverData/permission'
//定义接口 mock 请求拦截
Mock.mock('/api/home/getData',homeApi.getStatisticalData)
//用户列表数据
Mock.mock ('/user/add','post',user.createUser)
Mock.mock ('/user/edit','post',user.updataUser)
Mock.mock ('/user/del','post',user.deleteUser)
Mock.mock (/user\/getUser/,'get',user.getUserList)
Mock.mock (/permission\/getMenu/,'post',permission.getMenu)
